import type { IFormConfig } from '@/components/form/type'
const userModalConfig: IFormConfig = {
  formItems: [
    {
      prop: 'name',
      label: '用户名',
      type: 'input',
      placeholder: '请输入用户名',
      rules: [
        {
          required: true,
          message: '请输入用户名',
          trigger: 'blur'
        }
      ]
    },
    { prop: 'realname', label: '真实姓名', type: 'input', placeholder: '请输入真实姓名' },
    { prop: 'password', label: '用户密码', type: 'input', placeholder: '请输入密码', isHidden: true },
    { prop: 'cellphone', label: '电话', type: 'input', placeholder: '请输入电话' },
    {
      prop: 'departmentId',
      type: 'select',
      label: '选择部门',
      placeholder: '请选择部门',
      options: []
    },
    {
      prop: 'roleId',
      type: 'select',
      label: '选择角色',
      placeholder: '请选择角色',
      options: []
    }
  ],
  colStyle: { span: 24 },
  itemStyle: ''
}

export { userModalConfig }
